# [1,2,3,4,6,7]
def func(lst,target):
    for i in lst:
        for j in lst[lst.index(i)+1:]:
            if j == target - i:
                print(lst.index(i))
                print(lst.index(j))
func([1,2,3,4,6,7],10)

# 123,124,132,134,142,143,
# 213,214,231,234,241,243,
# 312,314,321,324,341,342,
# 412,413,421,423,431,432,

def func():
    tuple1 = (1,2,4,3)
    for i in tuple1:
        pass
print(func())

def func(lst):
    total = 0
    for i in lst:
        for j in  lst:
            for k in lst:
                if i != j and i != k and j != k:
                    total += 1
    print(total)
func([1,2,3,4])